<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Constructs signal event object</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="event.settimer.html">Event::setTimer</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="event.timer.html">Event::timer</a></div>
 <div class="up"><a href="class.event.html">Event</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="event.signal" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Event::signal</h1>
  <p class="verinfo">(PECL event &gt;= 1.2.6-beta)</p><p class="refpurpose"><span class="refname">Event::signal</span> &mdash; <span class="dc-title">Constructs signal event object</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-event.signal-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>
   <span class="modifier">static</span>
   <span class="type"><a href="class.event.html" class="type Event">Event</a></span> 
   <span class="methodname"><strong>Event::signal</strong></span>
    ( <span class="methodparam">
    <span class="type"><a href="class.eventbase.html" class="type EventBase">EventBase</a></span>
     <code class="parameter">$base</code>
   </span>
   , <span class="methodparam">
    <span class="type">int</span>
     <code class="parameter">$signum</code>
   </span>
   , <span class="methodparam">
    <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span>
     <code class="parameter">$cb</code>
   </span>
   [, <span class="methodparam">
    <span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span>
     <code class="parameter">$arg</code>
   </span>
  ] )</div>

  <p class="para rdfs-comment">
   Constructs signal event object. This is a straightforward method to create
   a signal event. Note, the generic
   <span class="methodname"><a href="event.construct.html" class="methodname">Event::__construct()</a></span>
   method can contruct signal event objects too.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-event.signal-parameters">
  <h3 class="title">参数</h3>
  <dl>

   
    <dt>

     <em><code class="parameter">base</code></em>
    </dt>

    <dd>

     <p class="para">
      The associated event base object.
     </p>
    </dd>

   
   
    <dt>

     <em><code class="parameter">signum</code></em>
    </dt>

    <dd>

     <p class="para">
      The signal number.
     </p>
    </dd>

   
   
    <dt>

     <em><code class="parameter">cb</code></em>
    </dt>

    <dd>

     <p class="para">
      The signal event callback. See
      <a href="event.callbacks.html" class="link">Event callbacks</a>
      .
     </p>
    </dd>

   
   
    <dt>

     <em><code class="parameter">arg</code></em>
    </dt>

    <dd>

     <p class="para">
      Custom data. If specified, it will be passed to the callback when event
      triggers.
     </p>
    </dd>

   
  </dl>

 </div>

 <div class="refsect1 returnvalues" id="refsect1-event.signal-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns Event object on success. Otherwise <strong><code>FALSE</code></strong>.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-event.signal-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li class="member">
    <a href="event.constructing.signal.events.html" class="link">Constructing signal events</a>
   </li>
  </ul>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="event.settimer.html">Event::setTimer</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="event.timer.html">Event::timer</a></div>
 <div class="up"><a href="class.event.html">Event</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
